package cn.adapter;

/**
 * Created by jt on 2018/3/15.
 */

/**
 * 将扁形接口的耳机转换成圆形接口的耳机
 */
public class Adapter implements FlatEarphone{

    //圆形接口的耳机
    private Earphone earphone ;

    public Adapter (Earphone earphone){
        this.earphone = earphone ;
    }


    @Override
    public void useFlatEarPort() {
        earphone.useRoundPort();
    }
}
